import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  push_base_url: [
    { required: true, message: "推送url为必填项", trigger: "blur" }
  ],
  access_key: [{ required: true, message: "Key为必填项", trigger: "blur" }],
  access_password: [
    { required: true, message: "密码为必填项", trigger: "blur" }
  ],
  much_id: [{ required: true, message: "商户ID为必填项", trigger: "blur" }],
  money: [{ required: true, message: "余额为必填项", trigger: "blur" }]
});
